<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<html>
    <head>
        <title>OSDiary</title>
        <link href="css/default.css" rel="stylesheet" type="text/css" />
        <meta content="text/html; charset=utf-8" http-equiv="content-type">
        <script src="js/prototype.js" type="text/javascript"></script>
        <script src="js/builder.js" type="text/javascript"></script>
        <script src="js/effects.js" type="text/javascript"></script>
        <script src="js/dragdrop.js" type="text/javascript"></script>
        <script src="js/slider.js" type="text/javascript"></script>
        <script src="js/controls.js" type="text/javascript"></script>
        <sx:head />
    </head>
    <body>

        <jsp:include page="WEB-INF/jspparts/logo.jsp" />
        
        <div id="content">

            <jsp:include page="WEB-INF/jspparts/sidebar.jsp" />

            <div id="main">
                <div id="welcome" class="post">

                    <s:if test="#session.logined != 'true'">

                        MAIN PAGE (you are not log in)

                    </s:if><s:else>

                        Your nearest events <!-- This text is temperary and don't to be localized -->
                        <table id="weekEvents">
                            <s:action name="nearEvents" executeResult="true" />
                        </table>

                        <div id="drag_demo_2" style="width:100px; height:100px; background:#fff85d; border:1px solid #333;"></div>
                          <script type="text/javascript">
                            new Draggable('drag_demo_2', { revert: true });
                          </script>

                    </s:else>

                </div>
            </div>
            <div id="extra" style="clear: both;"></div>
        </div>

        <jsp:include page="WEB-INF/jspparts/footer.jsp" />

    </body>
</html>